package io;

import java.io.FileOutputStream;
import java.nio.charset.StandardCharsets;

public class WriteStringDemo {
    public static void main(String[] args) throws Exception {
        FileOutputStream fos = new FileOutputStream("./demo.txt");
        String str = "Apple u , 诶 鹏友！";
        byte[]data = str.getBytes(StandardCharsets.UTF_8);
        fos.write(data);
        fos.close();






    }
}
